const Router = require('@koa/router')
const { getByCode, addOrEdit, exportExcel } = require('../controllers/comment')
const router = new Router()

router.get('/info/:code', getByCode)

router.post('/addOrEdit', addOrEdit)

router.post('/export', exportExcel)

router.get('/all', async (ctx) => {
  ctx.body = '所有点评数据'
})

router.prefix('/comment')
module.exports = router
